package com.my.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 房间档期表
 * </p>
 *
 * @author 张子艺
 * @since 2018-09-01
 */
@TableName("room_time")
public class RoomTime extends Model<RoomTime> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 房间ID
     */
	@TableField("room_id")
	private Long roomId;
    /**
     * 开始时间
     */
	@TableField("start_time")
	private Long startTime;
    /**
     * 结束时间
     */
	@TableField("end_time")
	private Long endTime;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Long createTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getRoomId() {
		return roomId;
	}

	public void setRoomId(Long roomId) {
		this.roomId = roomId;
	}

	public Long getStartTime() {
		return startTime;
	}

	public void setStartTime(Long startTime) {
		this.startTime = startTime;
	}

	public Long getEndTime() {
		return endTime;
	}

	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "RoomTime{" +
			"id=" + id +
			", roomId=" + roomId +
			", startTime=" + startTime +
			", endTime=" + endTime +
			", createTime=" + createTime +
			"}";
	}
}
